package com.currency.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@TableName(value = "wyt_currency_coins_freeze")
public class WytCurrencyCoinsFreeze {
    public static int FREEZE_TYPE_DRIVER_DEPOSIT = 1;
    public static int FREEZE_TYPE_SHIPMENT_DEPOSIT = 2;

    public static int FREEZE_STATUS_FREEZE = 1;
    public static int FREEZE_STATUS_THAW = 0;

    public static String UNFREEZE_REASON_BACK = "back";
    public static String UNFREEZE_REASON_TRANS = "trans";

    @ApiModelProperty(value = "冻结编号")
    @TableId(value = "freeze_id")
    private String freezeId;

    @ApiModelProperty(value = "冻结用户ID")
    @TableField(value = "user_id")
    private String userId;

    @ApiModelProperty(value = "冻结金币金额，单位 分")
    @TableField(value = "freeze_coins")
    private Integer freezeCoins;

    @ApiModelProperty(value = "冻结原因")
    @TableField(value = "freeze_reason")
    private String freezeReason;

    @ApiModelProperty(value = "冻结关联的订单号")
    @TableField(value = "freeze_order_id")
    private String freezeOrderId;

    @ApiModelProperty(value = "订单冻结类型  1-押金  2-运输  3-其他")
    @TableField(value = "freeze_type")
    private Integer freezeType;

    @ApiModelProperty(value = "冻结状态 0 - 已经解冻  1  - 冻结中")
    @TableField(value = "freeze_status")
    private Integer freezeStatus;

    @ApiModelProperty(value = "解冻原因  back - 原路退回  trans - 交易给其他用户")
    @TableField(value = "unfreeze_reason")
    private String unfreezeReason;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_datetime")
    private Date createDatetime;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_datetime")
    private Date updateDatetime;

}